//
//  UIViewController+Rx.swift
//  QSExtensions
//
//  Created by Song on 2018/9/14.
//  Copyright © 2018年 Song. All rights reserved.
//

import RxCocoa
import RxSwift

public extension Reactive where Base: UIViewController {
    var qs_viewDidAppear: ControlEvent<Bool> {
        let source = self.methodInvoked(#selector(Base.viewDidAppear))
            .map { $0.first as? Bool ?? false }
        return ControlEvent(events: source)
    }
}
